import axios from 'src/util/axios'

// 登录
const userlogin = params => axios('POST', '/user/login', params)

// 登出
const userlogout = params => axios('POST', '/user/logout', params)

// 导入Excel
const commonfileupload = params => axios('POST', '/common/file-upload', params, true)

// 导入Excel
const commonexcelupload = params => axios('POST', '/common/excel-upload', params, true)

// 修改密码
const userupdatepassword = params => axios('POST', '/user/update-password', params)

// 当前用户信息
const usermyself = params => axios('POST', '/user/myself', params)

// 添加用户
const useradd = params => axios('POST', '/user/add', params)

// 编辑用户
const userupdate = params => axios('POST', '/user/update', params)

// 用户列表
const userlist = params => axios('POST', '/user/list', params)

// 用户信息
const userinfo = params => axios('POST', '/user/info', params)

// 删除用户
const userdel = params => axios('POST', '/user/del', params)

// 修改用户状态
const userstatus = params => axios('POST', '/user/status', params)

// 添加角色
const roleadd = params => axios('POST', '/role/add', params)

// 编辑权限
const roleupdate = params => axios('POST', '/role/update', params)

// 权限列表
const rolelist = params => axios('POST', '/role/list', params)

// 权限信息
const roleinfo = params => axios('POST', '/role/info', params)

// 删除权限
const roledel = params => axios('POST', '/role/del', params)

// 添加客户
const customeradd = params => axios('POST', '/customer/add', params)

// 修改客户
const customerupdate = params => axios('POST', '/customer/update', params)

// 客户列表
const customerlist = params => axios('POST', '/customer/list', params)

// 删除客户
const customerdel = params => axios('POST', '/customer/del', params)

// 客户信息
const customerinfo = params => axios('POST', '/customer/info', params)

// 添加型号
const deviceclassadd = params => axios('POST', '/device/class/add', params)

// 修改型号
const deviceclassupdate = params => axios('POST', '/device/class/update', params)

// 通行记录列表
const deviceswipedata = params => axios('POST', '/device/swipe/data', params)

// 型号列表
const deviceclasslist = params => axios('POST', '/device/class/list', params)

// 型号信息
const deviceclassinfo = params => axios('POST', '/device/class/info', params)

// 删除型号
const deviceclassdel = params => axios('POST', '/device/class/del', params)

// 配置列表
const configlist = params => axios('POST', '/config/list', params)

// 添加配置
const configadd = params => axios('POST', '/config/add', params)

// 配置日志
const configloglist = params => axios('POST', '/config/log/list', params)

// 设备列表
const devicelist = params => axios('POST', '/device/list', params)

// 设备详情
const deviceinfo = params => axios('POST', '/device/info', params)

// 设备统计
const devicestatistics = params => axios('POST', '/device/statistics', params)

// 设备统计列表
const devicestatisticslist = params => axios('POST', '/device/statistics/list', params)

// 添加升级信息
const upgradeadd = params => axios('POST', '/upgrade/add', params)

// 修改升级信息
const upgradeupdate = params => axios('POST', '/upgrade/update', params)

// 升级信息列表
const upgradelist = params => axios('POST', '/upgrade/list', params)

// 升级信息
const upgradeinfo = params => axios('POST', '/upgrade/info', params)

// 删除升级信息
const upgradedeldel = params => axios('POST', '/upgrade/del', params)

// 批量升级
const upgradeexecute = params => axios('POST', '/upgrade/execute', params)

// 升级日志
const upgradeloglist = params => axios('POST', '/upgrade/log/list', params)

// 添加接口
const interfaceadd = params => axios('POST', '/interface/add', params)

// 接口列表
const interfacelist = params => axios('POST', '/interface/list', params)

// 接口详情
const interfaceinfo = params => axios('POST', '/interface/info', params)

// 接口编辑
const interfaceupdate = params => axios('POST', '/interface/update', params)

// 接口删除
const interfacedel = params => axios('POST', '/interface/del', params)

// 基础接口列表
const interfacebase = params => axios('POST', '/interface/base', params)

// 添加出货
const shipmentadd = params => axios('POST', '/shipment/add', params)

// 出货列表
const shipmentlist = params => axios('POST', '/shipment/list', params)

// 出货详情
const shipmentinfo = params => axios('POST', '/shipment/info', params)

// 编辑出货
const shipmentupdate = params => axios('POST', '/shipment/update', params)

// 删除出货
const shipmentdel = params => axios('POST', '/shipment/del', params)

// 设备列表
const shipmentloglist = params => axios('POST', '/shipment/log/list', params)

// 流量查询
const simflowget = params => axios('POST', '/sim/flow/get', params)

// 模块
const modulelist = params => axios('POST', '/upgrade/module/list', params)

// 分类列表
const materialclasslist = params => axios('POST', '/material/class/list', params)
// 添加分类
const materialclassadd = params => axios('POST', '/material/class/add', params)
// 编辑分类
const materialclassupdate = params => axios('POST', '/material/class/update', params)
// 删除分类
const materialclassdel = params => axios('POST', '/material/class/del', params)
// 添加资料
const materialadd = params => axios('POST', '/material/add', params)
// 编辑资料
const materialupdate = params => axios('POST', '/material/update', params)
// 资料列表
const materiallist = params => axios('POST', '/material/list', params)
// 删除资料
const materialdel = params => axios('POST', '/material/del', params)
// 添加模块
const modeladd = params => axios('POST', '/model/add', params)
// 模块列表
const modellist = params => axios('POST', '/model/list', params)
// 编辑模块
const modelupdate = params => axios('POST', '/model/update', params)
// 编辑模块
const modeldel = params => axios('POST', '/model/del', params)
// 添加节点
const nodeadd = params => axios('POST', '/node/add', params)
// 节点列表
const nodelist = params => axios('POST', '/node/list', params)
// 编辑节点
const nodeupdate = params => axios('POST', '/node/update', params)
// 编辑节点
const nodedel = params => axios('POST', '/node/del', params)
// 添加区域
const areaadd = params => axios('POST', '/area/add', params)
// 区域列表
const arealist = params => axios('POST', '/area/list', params)
// 编辑区域
const areaupdate = params => axios('POST', '/area/update', params)
// 编辑区域
const areadel = params => axios('POST', '/area/del', params)
// 添加节点
const modelnodeadd = params => axios('POST', '/model-node/add', params)
// 节点列表
const modelnodelist = params => axios('POST', '/model-node/list', params)
// 编辑节点
const modelnodeupdate = params => axios('POST', '/model-node/update', params)
// 编辑节点
const modelnodedel = params => axios('POST', '/model-node/del', params)

export {
  userlogin,
  commonfileupload,
  commonexcelupload,
  userlogout,
  userupdatepassword,
  usermyself,
  useradd,
  userupdate,
  userlist,
  userinfo,
  userdel,
  userstatus,
  roleadd,
  roleupdate,
  rolelist,
  roleinfo,
  roledel,
  customeradd,
  customerupdate,
  customerlist,
  customerdel,
  customerinfo,
  deviceclassadd,
  deviceclassupdate,
  deviceswipedata,
  deviceclasslist,
  deviceclassinfo,
  deviceclassdel,
  configlist,
  configadd,
  configloglist,
  devicelist,
  deviceinfo,
  devicestatistics,
  devicestatisticslist,
  upgradeadd,
  upgradeupdate,
  upgradelist,
  upgradeinfo,
  upgradedeldel,
  upgradeexecute,
  upgradeloglist,
  interfaceadd,
  interfacelist,
  interfaceinfo,
  interfaceupdate,
  interfacedel,
  interfacebase,
  shipmentadd,
  shipmentlist,
  shipmentinfo,
  shipmentupdate,
  shipmentdel,
  shipmentloglist,
  simflowget,
  modulelist,
  materialclasslist,
  materialclassadd,
  materialclassupdate,
  materialclassdel,
  materialadd,
  materialupdate,
  materiallist,
  materialdel,
  modeladd,
  modellist,
  modelupdate,
  modeldel,
  nodeadd,
  nodelist,
  nodeupdate,
  nodedel,
  areaadd,
  arealist,
  areaupdate,
  areadel,
  modelnodeadd,
  modelnodelist,
  modelnodeupdate,
  modelnodedel
}
